<div class="row">
  <div class="span3 bs-docs-sidebar ">
 	<*include file="<*$controller*>/location.tpl"*>
  </div>
  <div class="span9"> <*foreach from=$result item=a key =key name=foo*>
    <h3><a href="<*$a.version_url*>" target="blank"><*if $a.version_type eq 1 *>家长版<*else if $a.version_type eq 2*>老师版<*/if*> <*$a.version_no *></a>&nbsp;&nbsp; <a href="javascript:deleteit(<*$a.versionid*>)"><i class="icon-remove"></i></a></h3>
    <p><small><*$a.addtime|date_format:"%Y-%m-%d %H:%I "*></small></p>
    <p> <*$a.version_explain|replace:"\n":"<br/>
      "*> </p>
    <hr />
    <*/foreach*> </div>
</div>
<script type="text/javascript">

function deleteit(adid)
{
  if(confirm("删除将不能恢复")){
   window.location='/<*$controller*>/delete/vid/'+adid;
  }
}

</script> 
